Class ValueTupleDictionaryConverter<TKey, TValue>
JsonConverter for Dictionary with complex keys (ValueTuple, classes).
Keys are serialized to Base64-encoded JSON strings.
public class ValueTupleDictionaryConverter<TKey, TValue> : JsonConverter<Dictionary<TKey, TValue>> where TKey : notnull
Inheritance
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type .
public override Dictionary<TKey, TValue>? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Write(Utf8JsonWriter, Dictionary<TKey, TValue>?, JsonSerializerOptions)
Writes a specified value as JSON.
public override void Write(Utf8JsonWriter writer, Dictionary<TKey, TValue>? value, JsonSerializerOptions options)